<template>
  <div>
    <div class="signAlertWrapper">
      <div class="signAlert">
        <div class="banner">
          <span class="text">签到成功</span>
        </div>
        <span class="integralImg"></span>
        <span class="plus1"></span>
        <span class="plus2"></span>
        <span class="plus3"></span>
        <span class="plus4"></span>
        <span class="plus5"></span>
      </div>
      <p>今日签到获得
        <span>{{signPoint}}</span>薏米</p>
      <p>连续7天将获得额外奖励</p>
      <div class="operation">
        <span @click="goMall()">前往商城</span>|
        <span @click="closeAlert()">我知道了</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      // signPoint: 0
    }
  },
  props: ['signPoint'],
  methods: {
    closeAlert() {
      this.$emit('showSignAlert')
    },
    goMall() {
      this.$emit('goMall')
    }
  },
  mounted() {
    this.$nextTick(() => { })
  }
}
</script>
<style >
.signAlertWrapper {
  width: 100%;
  background-color: #fff;
}
.signAlertWrapper .signAlert {
  width: 5.3rem;
  height: 3.5rem;
  position: relative;
}

.signAlertWrapper .banner {
  width: 3.86rem;
  height: 1.9rem;
  position: absolute;
  left: 0.716rem;
  top: 0.312rem;
  background-image: url("../../assets/img/xhdpAlert.png");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 500;
}

.signAlertWrapper .text {
  font-size: 0.46rem;
  transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  -webkit-transform: rotate(-10deg);
  -ms-transform: rotate(-10deg);
  position: absolute;
  color: #fff;
  left: 1rem;
  top: 0.64rem;
}

.signAlertWrapper .integralImg {
  width: 1.72rem;
  height: 2.01rem;
  position: absolute;
  left: 1.84rem;
  top: 1.4rem;
  background-image: url("../../assets/img/xhdpintegral.png");
  background-repeat: no-repeat;
  background-size: cover;
  /* z-index: 499; */
}

.signAlertWrapper .plus1,
.signAlertWrapper .plus2 {
  width: 0.36rem;
  height: 0.37rem;
  position: absolute;
  right: 0.8rem;
  top: 1.3rem;
  background-image: url("../../assets/img/plus1.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.signAlertWrapper .plus2 {
  left: 0.64rem;
  top: 1.8rem;
  background-image: url("../../assets/img/plus2.png");
}

.signAlertWrapper .plus3,
.signAlertWrapper .plus4,
.signAlertWrapper .plus5 {
  width: 0.27rem;
  height: 0.28rem;
  position: absolute;
  right: 1.04rem;
  top: 2.52rem;
  background-image: url("../../assets/img/plus3.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.signAlertWrapper .plus4 {
  background-image: url("../../assets/img/plus4.png");
  left: 0.92rem;
  top: 3.08rem;
}

.signAlertWrapper .plus5 {
  background-image: url("../../assets/img/plus5.png");
  left: 1.28rem;
  top: 2.36rem;
}

.signAlertWrapper p {
  text-align: center;
  margin-bottom: 0.105rem;
  font-size: 0.28rem;
}

.signAlertWrapper p span {
  color: #5a9cf8;
  margin-left: -0.06rem;
  vertical-align: top;
}

.signAlertWrapper p:last-of-type {
  font-size: 0.2rem;
  color: #999999;
}

.signAlertWrapper .operation {
  width: 100%;
  height: 0.8rem;
  background-color: #5a9cf8;
  line-height: 0.8rem;
  font-size: 0.34rem;
  color: #ffffff;
  display: flex;
  display: -webkit-flex;
  /* -webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
}

.signAlertWrapper .operation span {
  height: 100%;
  text-align: center;
  flex: 1;
  -webkit-flex: 1;
}
</style>


